/** 服务处理部分*/
#ifndef __CHATTER_SERVICES_H__
#define __CHATTER_SERVICES_H__
#include "DefaultUtils.h"
#include "ServeUtils.h"
#include  <unistd.h>
#include <stdlib.h>
#include <string.h>

#include "DataMessage.h"

/**网络服务处理总函数*/
int FTPServicesMain(int socketid);

int AnalyMessage(SDataMessage* msg);

int HandleMessage(SDataMessage* msg,int fd);

int ServiceDoNetOpen(SDataMessage* msg,int fd);

int ServiceDoNetUser(SDataMessage* msg,int fd);

int ServiceDoNetDir(SDataMessage* msg,int fd);

int ServiceDoNetCd(SDataMessage* msg,int fd);

int ServiceDoNetMkDir(SDataMessage* msg,int fd);

int ServiceDoNetMrDir(SDataMessage* msg,int fd);

int ServiceDoNetPut(SDataMessage* msg,int fd);

int ServiceDoNetGet(SDataMessage* msg,int fd);

#endif // __CHATTER_SERVICES_H__
